A former bank in the heart of Ormskirk is set to be transformed into a coffee shop and student accommodation after plans were approved by WLBC.