weber was educated at charterhouse and at the trinity college of cambridge