An office building near the centre of East Lothian’s biggest town could be turned into student accommodation under new plans.